package com.yict.csms.resourceplan.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yict.csms.system.entity.DataDict;

/**
 * 
 * @author tortoi.huang
 *
 */
@Entity
@Table(name = "CSMS_RTGC_FL_TIME")
public class RtgcFlTime {
	
	@Id
	@Column(name = "TIMEID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "csms_rtgc_fl_time_seq")
	@SequenceGenerator(name = "csms_rtgc_fl_time_seq", sequenceName = "SEQ_CSMS_RTGC_FL_TIME", allocationSize = 1, initialValue = 1)
	private Long timeid;
	
	@Column(name = "RTGCFLDATE")
	private Date rtgcfldate;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "RTGCFLTIME")
	private DataDict rtgcfltime;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "MACHINE")
	private DataDict machine;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "STATUS")
	private DataDict status;
	
	@Column(name = "FINDDATE")
	private Date finddate;
	
	@Column(name = "COUNTDATE")
	private Date countdate;

	@Column(name = "COMMITDATE")
	private Date commitdate;

	@Column(name = "CREATEPERSON")
	private Long createperson;

	@Column(name = "CREATEDATE")
	private Date createdate;

	@Column(name = "UPDATEPERSON")
	private Long updateperson;

	@Column(name = "UPDATEDATE")
	private Date updatedate;
	
	public Long getTimeid() {
		return timeid;
	}

	public void setTimeid(Long timeid) {
		this.timeid = timeid;
	}

	public Date getRtgcfldate() {
		return rtgcfldate;
	}

	public void setRtgcfldate(Date rtgcfldate) {
		this.rtgcfldate = rtgcfldate;
	}

	public DataDict getRtgcfltime() {
		return rtgcfltime;
	}

	public void setRtgcfltime(DataDict rtgcfltime) {
		this.rtgcfltime = rtgcfltime;
	}

	public DataDict getMachine() {
		return machine;
	}

	public void setMachine(DataDict machine) {
		this.machine = machine;
	}

	public DataDict getStatus() {
		return status;
	}

	public void setStatus(DataDict status) {
		this.status = status;
	}

	public Date getFinddate() {
		return finddate;
	}

	public void setFinddate(Date finddate) {
		this.finddate = finddate;
	}

	public Date getCountdate() {
		return countdate;
	}

	public void setCountdate(Date countdate) {
		this.countdate = countdate;
	}

	public Date getCommitdate() {
		return commitdate;
	}

	public void setCommitdate(Date commitdate) {
		this.commitdate = commitdate;
	}

	public Long getCreateperson() {
		return createperson;
	}

	public void setCreateperson(Long createperson) {
		this.createperson = createperson;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Long getUpdateperson() {
		return updateperson;
	}

	public void setUpdateperson(Long updateperson) {
		this.updateperson = updateperson;
	}

	public Date getUpdatedate() {
		return updatedate;
	}

	public void setUpdatedate(Date updatedate) {
		this.updatedate = updatedate;
	}
}
